<template>
	<view>
		<view class="margin-top-sm">
			<view class="cu-list menu ">
				<view @click="handleUpdata" class="cu-item arrow">
					<text>修改资料</text>
				</view>
				<view class="cu-item arrow">
					<text>绑定手机</text>
				</view>
				<view class="cu-item arrow">
					<text>会员中心</text>
				</view>
			</view>
		</view>
		<view class="margin-top-lg">
			<view class="cu-list menu ">
				<view class="cu-item arrow">
					<text>字体大小</text>
				</view>
				<view class="cu-item arrow">
					<text>屏蔽管理</text>
				</view>
				<view class="cu-item arrow">
					<text>通知设置</text>
				</view>
			</view>
		</view>
		<view class="margin-top-lg">
			<view class="cu-list menu ">
				<view class="cu-item arrow">
					<text>给【一言】的好评</text>
				</view>
				<view class="cu-item arrow">
					<text>给【一言】的建议</text>
				</view>
			</view>
		</view>
		<view class="margin-top-lg">
			<view class="cu-list menu ">
				<view class="cu-item arrow">
					<text>注销账号</text>
				</view>
				<view @click="handleUot" class="cu-item arrow">
					<text>退出登录</text>
				</view>
			</view>
		</view>
		
		<view class="flex justify-around text-xs text-gray margin-top-lg">
			<text>《用户协议》</text>
			<text>《隐私条款》</text>
		</view>
	</view>
</template>

<script setup lang="ts">
	// 退出登录
const handleUot=()=>{
	
	uni.showModal({
		confirmColor:'#ff0000',
		title:'确定退出',
		success: ({confirm}) => {
			if(confirm){
				uni.removeStorage({
					key:'userinfo',
					success: () => {
						
					}
				})
				uni.navigateTo({
					url:'/pages/mine/login'
				})
			}
			
		}
	})
}
//修改质料
const handleUpdata=()=>{
	uni.navigateTo({
		url:'/pages/setting/modifydata'
	})
}
</script>

<style lang="scss">
page{
	background-color: #ecececec;
}
</style>